#
# HoI - French Forts events
#
#		written by Generalisimo
#
# C.O.R.E. v0.7 transition to CSV completed
#########################################################################
#  15050 - French political crisis over fortification effort - *AI*
#########################################################################
event = {
	id = 15050
	random = no
	country = FRA
	trigger = {
		ai = yes 
		exists = FRA #France
		exists = LUX #Luxembourg
		exists = HOL #Holland
		exists = BEL #Belgium
		NOT = {
			OR = {
				war = { country = GER country = FRA }
				war = { country = GER country = LUX }
				war = { country = GER country = HOL }
				war = { country = GER country = BEL }
				alliance = { country = GER country = FRA }
				alliance = { country = GER country = LUX }
				alliance = { country = GER country = HOL }
				alliance = { country = GER country = BEL }
				puppet = { country = FRA country = GER }
				puppet = { country = LUX country = GER }
				puppet = { country = HOL country = GER }
				puppet = { country = BEL country = GER }
				}
			}
		random = 70
		}

	name = CEVTNAME_15050
	desc = CEVTDESC_15050
	style = 0

	date = { day = 21 month = july year = 1939 } 
	offset = 10
	deathdate = { day = 5 month = august year = 1939 }

	action_a = {
		name = CEVTACTA_15050
		command = { type = land_fort which = 518 value = -9 } #lille
		command = { type = land_fort which = 520 value = -9 } #sedan
		command = { type = land_fort which = 556 value = -9 } #chaumont
		command = { type = dissent value = -10 }
		command = { type = industry which = 518 value = 3 }
		command = { type = industry which = 520 value = 3 }
		command = { type = industry which = 556 value = 3 }
		command = { type = influence value = 30 } # diplomatic influence, no way to influence another country
		command = { type = sleepevent which = 15063 } # just to be sure
		}
	action_b = {
		name = CEVTACTB_15050
		command = { type = dissent value = 15 }
		command = { type = trigger which = 15051 } # LUX
		command = { type = trigger which = 15052 } # HOL
		command = { type = trigger which = 15053 } # BEL
		command = { type = sleepevent which = 15063 } # just to be sure
		}
}

#########################################################################
#  15063 - French political crisis over fortification effort - *NO AI*
#########################################################################
event = {
	id = 15063
	random = no
	country = FRA
	trigger = {
		ai = no
		exists = FRA #France
		exists = LUX #Luxembourg
		exists = HOL #Holland
		exists = BEL #Belgium
		NOT = {
			OR = {
				war = { country = GER country = FRA }
				war = { country = GER country = LUX }
				war = { country = GER country = HOL }
				war = { country = GER country = BEL }
				alliance = { country = GER country = FRA }
				alliance = { country = GER country = LUX }
				alliance = { country = GER country = HOL }
				alliance = { country = GER country = BEL }
				puppet = { country = FRA country = GER }
				puppet = { country = LUX country = GER }
				puppet = { country = HOL country = GER }
				puppet = { country = BEL country = GER }
				}
			}
		random = 70
		}

	name = CEVTNAME_15063
	desc = CEVTDESC_15063
	style = 0

	date = { day = 20 month = july year = 1939 } 
	offset = 10
	deathdate = { day = 5 month = august year = 1939 }

	action_a = {
		name = CEVTACTA_15063
		command = { type = land_fort which = 518 value = -9 } #lille
		command = { type = land_fort which = 520 value = -9 } #sedan
		command = { type = land_fort which = 556 value = -9 } #chaumont
		command = { type = dissent value = -10 }
		command = { type = industry which = 518 value = 3 }
		command = { type = industry which = 520 value = 3 }
		command = { type = industry which = 556 value = 3 }
		command = { type = influence value = 30 } # diplomatic influence, no way to influence another country
		command = { type = sleepevent which = 15050 } # just to be sure
		}
	action_b = {
		name = CEVTACTB_15063
		command = { type = dissent value = 15 }
		command = { type = trigger which = 15051 } # LUX
		command = { type = trigger which = 15052 } # HOL
		command = { type = trigger which = 15053 } # BEL
		command = { type = sleepevent which = 15050 } # just to be sure
		}
}

#########################################################################
#  Benelux Outrage - Luxembourg
#########################################################################
event = { 
	id = 15051
	random = no
	country = LUX

	 # French Forts 15050

	name = CEVTNAME_15051
	desc = CEVTDESC_15051
	style = 0
	
	action_a = {
		name = CEVTACTA_15051
		command = { type = alignment which = fascist value = 50 }
	}
	action_b = {
		name = CEVTACTB_15051
		command = { type = alignment which = fascist value = 100 }
		command = { type = trigger which = 15055 } # GER
		#a lot of units changes sides...
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
	}
	action_c = {
		name = CEVTACTC_15051
		command = { type = alignment which = fascist value = 150 }
		#command = { type = alliance which = GER }
		command = { type = leave_alliance } 
		command = { type = trigger which = 15060 } # GER
		#a lot of units changes sides...
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
	}
}

#########################################################################
#  Benelux Outrage - Holland
#########################################################################
event = { 
	id = 15052
	random = no
	country = HOL

	 # French Forts 15050

	name = CEVTNAME_15051
	desc = CEVTDESC_15051
	style = 0
	
	action_a = {
		name = CEVTACTA_15051
		command = { type = alignment which = fascist value = 50 }
	}
	action_b = {
		name = CEVTACTB_15051
		command = { type = alignment which = fascist value = 100 }
		command = { type = trigger which = 15056 } # GER
		#a lot of units changes sides...
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
	}
	action_c = {
		name = CEVTACTC_15051
		command = { type = alignment which = fascist value = 150 }
		#command = { type = alliance which = GER }
		command = { type = leave_alliance } 
		command = { type = trigger which = 15061 } # GER
		#a lot of units changes sides...
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
	}
}

#########################################################################
#  Benelux Outrage - Belgium
#########################################################################
event = { 
	id = 15053
	random = no
	country = BEL

	 # French Forts 15050

	name = CEVTNAME_15051
	desc = CEVTDESC_15051
	style = 0
	
	action_a = {
		name = CEVTACTA_15051
		command = { type = alignment which = fascist value = 50 }
	}
	action_b = {
		name = CEVTACTB_15051
		command = { type = alignment which = fascist value = 100 }
		command = { type = trigger which = 15057 } # GER
		#a lot of units changes sides...
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
	}
	action_c = {
		name = CEVTACTC_15051
		command = { type = alignment which = fascist value = 150 }
		#command = { type = alliance which = GER }
		command = { type = leave_alliance } 
		command = { type = trigger which = 15062 } # GER
		#a lot of units changes sides...
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
		command = { type = switch_allegiance which = FRA value = -1 }
	}
}

#########################################################################
#  Benelux Outrage - Germany coups Luxembourg
#########################################################################
event = { 
	id = 15055
	random = no
	country = GER

	 # Luxembourg 15051

	name = CEVTNAME_15051
	desc = CEVTDESC_15051
	style = 0
	
	action_a = {
		name = CEVTACTA_15055
		command = { type = coup_nation which = LUX }
	}
}

#########################################################################
#  Benelux Outrage - Germany coups Holland
#########################################################################
event = { 
	id = 15056
	random = no
	country = GER

	 # Holland 15052

	name = CEVTNAME_15051
	desc = CEVTDESC_15051
	style = 0
	
	action_a = {
		name = CEVTACTA_15056
		command = { type = coup_nation which = HOL }
	}
}

#########################################################################
#  Benelux Outrage - Germany coups Belgium
#########################################################################
event = { 
	id = 15057
	random = no
	country = GER

	 # Belgium 15053

	name = CEVTNAME_15051
	desc = CEVTDESC_15051
	style = 0
	
	action_a = {
		name = CEVTACTA_15057
		command = { type = coup_nation which = BEL }
	}
}

#########################################################################
#  Benelux Outrage - Germany coups Luxembourg and joins the axis
#########################################################################
event = { 
	id = 15060
	random = no
	country = GER

	 # Luxembourg 15051

	name = CEVTNAME_15051
	desc = CEVTDESC_15051
	style = 0
	
	action_a = {
		name = CEVTACTA_15060
		command = { type = coup_nation which = LUX }
		command = { type = alliance which = LUX }
	}
}

#########################################################################
#  Benelux Outrage - Germany coups Holland and joins the axis
#########################################################################
event = { 
	id = 15061
	random = no
	country = GER

	 # Holland 15052

	name = CEVTNAME_15051
	desc = CEVTDESC_15051
	style = 0
	
	action_a = {
		name = CEVTACTA_15061
		command = { type = coup_nation which = HOL }
		command = { type = alliance which = HOL }
	}
}

#########################################################################
#  Benelux Outrage - Germany coups Belgium and joins the axis
#########################################################################
event = { 
	id = 15062
	random = no
	country = GER

	 # Belgium 15053

	name = CEVTNAME_15051
	desc = CEVTDESC_15051
	style = 0
	
	action_a = {
		name = CEVTACTA_15062
		command = { type = coup_nation which = BEL }
		command = { type = alliance which = BEL }
	}
}



###
# Maginot Line Fortress Reduction - flanked by Axis forces
###

event = {
	id = 15064
	random = no
	country = FRA

	trigger = {
		atwar = yes
		NOT = {
			alliance = { country = GER country = FRA }
		}
		
		OR = {
			control = { province = 541 data = GER }
			control = { province = 541 data = ITA }
			control = { province = 541 data = VIC }
			control = { province = 555 data = GER }
			control = { province = 555 data = ITA }
			control = { province = 555 data = VIC }
			control = { province = 543 data = GER }
			control = { province = 543 data = ITA }
			control = { province = 543 data = VIC }
			control = { province = 544 data = GER }
			control = { province = 544 data = ITA }
			control = { province = 544 data = VIC }
		}
	}

	name = CEVTNAME_15064
	desc = CEVTDESC_15064
	style = 0

	date = { day = 15 month = january year = 1936 } 
	offset = 5
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = CEVTACTA_15064
		command = { type = land_fort which = 542 value = -7 }
	}
}

event = {
	id = 15065
	random = no
	country = FRA

	trigger = {
		atwar = yes
		NOT = {
			alliance = { country = GER country = FRA }
		}
		
		OR = {
			control = { province = 542 data = GER }
			control = { province = 542 data = ITA }
			control = { province = 542 data = VIC }
			control = { province = 543 data = GER }
			control = { province = 543 data = ITA }
			control = { province = 543 data = VIC }
			control = { province = 554 data = GER }
			control = { province = 554 data = ITA }
			control = { province = 554 data = VIC }
		}
	}

	name = CEVTNAME_15065
	desc = CEVTDESC_15064
	style = 0
	
	date = { day = 15 month = january year = 1936 } 
	offset = 5
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = CEVTACTA_15065
		command = { type = land_fort which = 555 value = -7 }
	}
}

event = {
	id = 15066
	random = no
	country = FRA

	trigger = {
		atwar = yes
		NOT = {
			alliance = { country = GER country = FRA }
		}
		
		OR = {
			control = { province = 555 data = GER }
			control = { province = 555 data = ITA }
			control = { province = 555 data = VIC }
			control = { province = 543 data = GER }
			control = { province = 543 data = ITA }
			control = { province = 543 data = VIC }
			control = { province = 556 data = GER }
			control = { province = 556 data = ITA }
			control = { province = 556 data = VIC }
		}
	}

	name = CEVTNAME_15066
	desc = CEVTDESC_15064
	style = 0

	date = { day = 15 month = january year = 1936 } 
	offset = 5
	deathdate = { day = 30 month = december year = 1947 }

	action_a = {
		name = CEVTACTA_15066
		command = { type = land_fort which = 554 value = -7 }
	}
}	
